/*
 * AGENT SHERPA
 *  
 * Assignement 2 of the Agent Oriented Software Engineering Course
 * M.Sc. in Advanced Software Engineering (Part-time)
 * University College Dublin www.ucd.ie
 *
 * Copyright (c) 2007 Chris Walsh, Aidan Morrisy and Iain Hull.
 * All rights reserved.
 * 
 * Filename: Main.aps
 * Author:   iain
 * Date:     06 February 2008
 */
package org.agentsherpa.model;


/**
 * Model class to represent an IED.
 */
public class Ied {
    /**
     * The possible status of a drone
     */
    public enum Status {
        Active, Disamred, Exploded
    }
    
    Ied(Point location) {
        this.location = location;
    }
    
    public Point getLocation() {
        return location;
    }

    public Status getStatus() {
        return status;
    }
    
    void explode() {
    	status = Status.Exploded;
    }
    
    @Override
    public String toString() {
        return "IED " + location + " is " + status;
    }


    private Point location;
    
    private Status status = Status.Active;
}
